package com.tomvian.screens 
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	/**
	 * AbstractScreen
	 * @author Thomas Vian
	 */
	public class AbstractScreen
	{
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		
		public var graphic:Sprite;
		
		public var screenManager:ScreenManager;
		
		//--------------------------------------------------------------------------
		//
		//  Getters / Setters
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Constructor
		//
		//--------------------------------------------------------------------------
		
		public function AbstractScreen() 
		{
			graphic = new Sprite;
			graphic.mouseEnabled = false;
		}
		
		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------
		
		public function enterStart(oldScreen:AbstractScreen):void
		{
			
		}
		
		public function enterFinish(oldScreen:AbstractScreen):void
		{
			graphic.mouseEnabled = true;
		}
		
		public function exitStart(newScreen:AbstractScreen):void
		{
			graphic.mouseEnabled = false;
		}
		
		public function exitFinish(newScreen:AbstractScreen):void
		{
			
		}
	}
}